#include "AboutOp.h"
#include <QApplication>
#include <QMessageBox>
#include "../ConfigApplication.h"

AboutOp::AboutOp(): GenericOperation(qApp->translate("Operations", "About").toStdString())
{
}

void AboutOp::operator()(const genericinterface::ImageWindow* currentWnd, const std::vector<const genericinterface::ImageWindow*>&){
        QString title(qApp->translate("","About ").append(APP_NAME));
        QString text(qApp->translate("","This software is free"));

        QMessageBox::information(NULL, QString(qApp->translate("","About")).arg(QString(APP_NAME)) , qApp->translate("","The version of the software is 2.0.\n It was developed by the INSA of Rennes in 2013 for teachin purpose.\n The license is GNU General Public License available here: <http://www.gnu.org/licenses/>.\n The developer were Sacha Percot-Tétu in 2012 and Franck Lenormand in 2013 ") );
}
